@import url("wing.css");

@font-face{
  font-family: 'DroidSans';
  src: url('DroidSans.woff') format('woff');
  /*font license Apache V2.00: https://www.fontsquirrel.com/license/droid-sans*/
}

@font-face{
  font-family: 'IBMVGA';
  src: url('PxPlus_IBM_VGA_8x16.ttf') format('truetype');
  /* VileR's old school font pack - int10h.org */
}

@font-face{
  font-family: 'H1Weird';
  src: url('h1Font.ttf') format('truetype');
}

/* {
  "TIP_OVER_TEAL" :
  #00d16d
    { "Hue" : 0.42, "Saturation" : 1.00 },
  "OVERFIT_ORANGE" :
    { "Hue" : 0.05, "Saturation" : 0.95 },
  "UNCANNY_YELLOW" :
    { "Hue" : 0.11, "Saturation" : 1.00 },
  "NON_LINEAR_LIME" :
    { "Hue" : 0.21, "Saturation" : 1.00 },
  "SINGULARITY_SAPPHIRE" :
    { "Hue" : 0.57, "Saturation" : 1.00 },
  "FALSE_POSITIVE_PURPLE" :
  #e237e6
    { "Hue" : 0.83, "Saturation" : 0.76 },
  "CONFUSION_MATRIX_GREEN" :
    { "Hue" : 0.30, "Saturation" : 1.00 }
} */

:root {
  --bg-color: #1e1e1e;
  --body-font-family: 'DroidSans', sans-serif;
  --bg-color-alt: rgba(196,196,196,1);        /* light gray #C4C4C4*/
  --button-color: rgba(75,75,75,1);        /* dark gray #4B4B4B */
  --button-color-alt: rgba(164,164,164,1);    /* light gray #A4A4A4 */
  --fg-color: #00ff80;            /* light green 33ED6D */
  --medium-battery: #ced100;        /* bright yellow */
  --low-battery: #ff0000;        /* bright red */
  --fg-color-alt: rgba(51,237,109,.05);        /* light green 33ED6D */
  --text-color: rgba(255,255,255,1);        /* white #FFFFFF */
  --text-color-alt: rgba(34,34,34,1);        /* black #000000 */
}

/* Modified icon styles */
.selectedicon {
  color: var(--fg-color);
}

.notselectedicon {
  color: var(--fg-color);
  filter: drop-shadow(0 0 8px var(--fg-color));
}

.notselectedicon:hover {
  color: var(--text-color); /* White for hover */
}

.main-nav-child:hover .selectedicon {
  color: var(--fg-color);
}

.selectedicon, .notselectedicon {
  transition: all 0s ease-in-out;
}

.dropdown {
  position: relative;
  display: inline-block;
}

button:disabled, button[type="submit"]:disabled {
  background: var(--bg-color);
  color : var(--bg-color-alt);
}
button, button[type="submit"] {
  font-family: var(--body-font-family);
  font-size: 0.8em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 170px;
  border: 2px solid var(--fg-color);
  background-color: var (--button-color);
  color: var(--text-color);
  transition: border-color 0.3s, background-color 0.3s;
}

button:hover, button[type="submit"]:disabled {
  border-color: var(--fg-color-alt);
  background-color: var(--fg-color);
  color: var(--text-color-alt);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px var(--fg-color-alt);
  padding: 12px 16px;
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

input[type="text"], input[type="file"], select {
  background-color: #2d2d2d;
  color: #ffffff;
  font-family: var(--body-font-family);
  font-size: 1.0em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 2px solid var(--fg-color);
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input[type="text"]:hover, input[type="file"]:hover, select:hover,
input[type="text"]:focus, input[type="file"]:focus, select:focus {
  border-color: white;
  border: 2px solid;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input[type='text']:disabled {
  cursor: not-allowed;
}

.small-hr {
  border: 1px solid #3e3e3e;
  width: 30%;
}

.log-hr {
  margin-bottom: 50px;
}

input[type="file"] {
  width: auto;
}

/* input[type="text"] {
  width: ;
} */

select {
  width: auto;
}

body {
  background-color: var(--bg-color);
  font-family: var(--body-font-family);
  font-size: 1.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  flex-wrap: wrap;
  text-align: center;
  padding-top: env(safe-area-inset-top);
}


h1, h2, h3, h4, small, p, li, label {
  font-family: var(--body-font-family);
  color: var(--text-color);
}

h2, h3 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.desc {
  color: var(--bg-color-alt);
}

h1 {
  color: var(--fg-color);
  font-family: "H1Weird", sans-serif;
  font-size: 3em;
  font-weight: bold;
  letter-spacing: 0em;
  text-align: center;
}

textarea {
  background-color: #2d2d2d;
  color: #ffffff;
  font-family: var(--body-font-family);
  font-size: 0.9em;
  height: 280px;
  border: 2px solid var(--fg-color);
  box-sizing: border-box;
  transition: border-color 0.3s;
}

textarea:hover, textarea:focus {
  border-color: white;
  border: 2px solid;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

/* p {
  font-size: 1.2em;
} */

.content {
  display: none;
}

.wrap {
  overflow: hidden !important;
  white-space: nowrap !important;
}

hr {
  border: 2px solid #3e3e3e;
  /* background-image: linear-gradient(to right, var(--fg-color-alt), var(--fg-color), var(--fg-color-alt)); */
}

a {
  color:var(--fg-color);
}
a:hover {
  text-decoration: none;
  color: var(--fg-color);
}
/*
ul {
  list-style-type:none;
} */

ul, li {
  /* list-style-type: none; */
  list-style-position:inside;
  margin:0;
  padding:0;
}

.tinput {
  width: 315px !important;
  background-color: var(--button-color) !important;
  color: var(--text-color) !important;
  border: 2px solid var(--fg-color); /* accent color */
}

.tinputauth {
  width: 499px !important;
  background-color: var(--button-color) !important;
  color: var(--text-color) !important;
  border: 2px solid var(--fg-color); /* accent color */
}

canvas{
  width:750px !important;
  height:400px !important;
}

/* RADIO BUTTON ######################### */
input[type='radio'] {
  appearance: none;
  top: 13.333333px;
  right: 50%;
  bottom: 0px;
  left: 0;
  margin-top: 0px;
  height: 40px;
  width: 40px;
  transition: all .2s ease;
  background: var(--button-color);
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1000;
  border-radius: 50%;
  border: 1px solid var(--button-color-alt);
}

input[type='radio']:checked:after {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--fg-color);
  content: '';
  display: inline-block;
}

input[type='radio']:disabled {
  cursor: not-allowed;
}

input[type='radio']:disabled:after {
  background-color: var(--button-color-alt);
  cursor: not-allowed;
}

/* ###################################### */
#username, #password {
  width: 499px !important;
  background-color: var(--bg-color-alt) !important;
  color: var(--text-color) !important;
  border: 2px solid var(--fg-color); /* accent color */
}

#botAuth {
  color: var(--text-color);
}

#content {
  width: 950px !important;
  /* word-break:break-all !important; */
  /* word-wrap: break-all !important; */
  white-space:normal !important;
}
#outer {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 100vh; /* Keeps things at the top*/
  align-items: start;
}

#botStats {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* a simple gif loading from /assets/cloudface.gif and is 60x60px */
.botLoader {
  background-image: url('/assets/cloudface.gif');
  background-size: 60px 60px;
  background-position: center;
  background-clip: border-box;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.batteryContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 60px;
  padding-bottom: 15px;
  gap: 15px;
  cursor: pointer;
}

.batteryContainer:hover .tooltip {
  display: block;
}

.tooltip {
  position: absolute;
  display: none;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: 5px;
  padding: 5px;
  z-index: 1000;
  margin-top: 145px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.batteryOutline {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
  border-radius: 5px;
  width: 100px;
  height: 40px;
  position: relative;
}
.batteryOutline::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: var(--button-color);
  border-radius: 5px;
}
.batteryOutline::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 102px;
  width: 6px;
  height: 18px;
  background-color: var(--text-color);
}

.vectorFace {
  height: 60px;
  width: 60px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.batteryLevel {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: var(--button-color-alt);
  border-radius: 5px;
}

.battery0 {
  background-color: var(--low-battery);
}

.battery1 {
  background-color: var(--medium-battery);
}

.battery3, .battery2  {
  background-color: var(--fg-color);
}

.charging {
  position: absolute;
  top: 0px;
  left: 30px;
  width: 40px;
  height: 40px;
  /* content is an svg of a lightning bolt */
  content: url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 60"><polygon points="20,0 5,33 24,33 15,60 35,27 16,27" fill="white"/></svg>');
  /* svg drop shadow */
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

.chargeTimeRemaining {
  position: absolute;
  bottom: 0px;
  left: 3px;
  font-size: 0.6em;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 1);
}

.main-nav-parent {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 1rem auto;
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: 950px;
}

.main-nav-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  border: 1px solid white;
  padding: 8px 12px;
  vertical-align: top;
  width: auto;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 85px;
  transition: all 0.3s ease-in-out;
  width: 85px;
}

.main-nav-child:has(.selectedicon) {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--fg-color);
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.1);
}

.main-nav-child:hover {
  transform: translateY(-2px);
  border-color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1)
}

.main-nav-child i {
  font-size: 32px;
  margin-bottom: 8px;
  transition: all 0.3s ease-in-out;
}

.main-nav-child a {
  width: 100%;
  text-decoration: none;
  font-size: 100%;
  color: var(--bg-color-alt);
}

.main-nav-child a:hover {
  color: var(--text-color);
}

.main-nav-child a i {
  text-decoration: none;
  font-size: 60px;
  /*padding-left: 20px;
  padding-right: 20px;*/
  padding-bottom: 10px;
}

.main-nav-child a img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  object-fit: contain;
}

/* no horizontal scroll on mobile, grid instead of line*/

@media screen and (max-width: 768px) {
  .main-nav-parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    padding: 0.5rem;
    margin: 0;
    width: 100%;
  }
  
  #outer {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #content {
    width: 100% !important;
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

input[type='checkbox'] {
  appearance: none;
  width: 25px;
  height: 25px;
  background-color: var(--button-color);
  border: 2px solid var(--fg-color); /* accent color */
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

input[type='checkbox']:checked {
  background-color: var(--fg-color);
}

input[type='checkbox']:checked:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 12px;
  border: solid var(--text-color);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-label {
  padding-top: 3px;
  margin-left: 5px;
  word-break: break-word;
}
